package com.extendsDemo.Demo01;

/*
要写注释哦!!!
*/
public class Test {
    public static void main(String[] args) {
        A a = new A();
        System.out.println(a.i);
        a.print1();
        //继承类的对象可以调用继承类里面的变量和方法
        B b = new B();
        System.out.println(b.i);
        b.print1();
//        System.out.println(b.j);
//        b.print2();
    }
}
